package com.andy.nicefi.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.andy.nicefi.bean.User;
import com.andy.nicefi.exception.LogException;

@Service
public interface UserService {

	@Transactional
	public List<User> getAllUserList();
	
	@Transactional
	public void saveUser(User user);
	
	@Transactional
	public void updateUser(User user);
	
	@Transactional
	public void deleteUser(String userId);
	
	@Transactional
	public void deleteUser(User user);
	
	@Transactional
	public boolean existUser(String hql);
	
	@Transactional
	public boolean validateLogin(User user) throws Exception;
	
	@Transactional
	public boolean activate(String key) throws Exception;
	
	@Transactional
	public User getUser(String hql);
}
